<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <table cellpadding="0" cellspacing="0">
		<colgroup>
			<col style="width:5%;background-color:red; text-align:center;" />
			<col style="width:40%" />
			<col />
		</colgroup>
		<tr>
			<th>电影名</th>
			<th>导演</th>
			<th>封面</th>
		</tr>
		<% list.forEach(function(item,index){%>
		<tr>
			<td><%- item.title %></td>
			<td><%- item.directors[0].name %></td>
			<td><img src="<%- item.images.medium %>"></td>
		</tr>
		<%})%>
		<tr>
			<td colspan="3">
				<a href="./items?item=<%= item %>&pageNo=1">首页</a>
				<a href="./items?item=<%= item %>&pageNo=<%= pageNo > 1 ? parseInt(pageNo)-1:1%>">上一页</a>
				<a href="./items?item=<%= item %>&pageNo=<%= pageNo < totalPages ? parseInt(pageNo) + 1 :totalPages%>">下一页</a>
				<a href="./items?item=<%= item %>&pageNo=<%= totalPages %>">尾页</a>
				<%= pageNo %> / <%= totalPages %>
				共 <%= count %>条记录
			</td>

		</tr>
	</table>
</body>
</html>